package com.vueblog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 课程表
 * @TableName t_course
 */
@TableName(value ="t_course")
@Data
public class Course implements Serializable {
    /**
     * 课程id
     */
    @TableId(type = IdType.AUTO)
    private Integer courseId;

    /**
     * 课程名称
     */
    private String courseName;

    /**
     * 发布课程的用户id
     */
    private String userId;

    /**
     * 课程原价
     */
    private Double coursePrice;

    /**
     * 课程优惠价
     */
    private Double courseDiscountPrice;

    /**
     * 课程优惠价截止时间
     */
    private Date courseDiscountTime;

    /**
     * 课程简介
     */
    private String courseSynopsis;

    /**
     * 课程类型
     */
    private Integer typeId;

    /**
     * 是否为vip课程0：否1：是
     */
    private Integer courseVip;

    /**
     * 课程介绍
     */
    private byte[] courseIntroduce;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}